<template>
	<view class="content">
		<u-navbar title=" " bg-color="rgba(0,0,0,0)" @leftClick="leftClick"></u-navbar>
		<image class="bg" mode="widthFix" src="/static/bg1.png"></image>
		<view class="footer">
			<view class="box">
				<view class="box__top flex">
					<view class="left"></view>
					<view class="">户型图</view>
					<view class="right"></view>
				</view>
				<view class="box__center">
					<image class="max" @click="showPic(0)" src="../../static/img1.png" mode="widthFix"></image>
					<image class="min" @click="showPic(1)" src="../../static/img2.jpg" mode="widthFix"></image>
				</view>
				<view class="box__btn">获取您的专属户型
					<button class="contact-btn" type="default" open-type="contact">获取免费测量服务</button>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		onLoad() {

		},
		methods: {

			toUrl() {
				uni.navigateTo({
					url: '/pages/index/house_type'
				})
			},
			leftClick() {
				uni.redirectTo({
					url: '/pages/index/home'
				})
			},

			showPic(i) {
				uni.previewImage({
					current: i,
					loop: true,
					urls: [
						require('@/static/img1.png'),
						require('@/static/img2.jpg'),
						require('@/static/img3.jpg')
					]
				})
			}
		}
	}
</script>

<style lang="scss">
	page {
		height: 100vh;
		overflow: hidden;
	}

	.bg {
		width: 750rpx;
	}

	.flex {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.footer {
		background-color: #B3A284;
		height: 50vh;
		margin-top: -10rpx;
		z-index: 2;
		// padding-top: 90rpx;
		font-family: PingFang SC, PingFang SC;
		position: relative;

		.box {
			width: 570rpx;
			background-color: #FFF;
			padding: 40rpx 60rpx;
			margin: 0 auto;
			border-radius: 35rpx;
			position: relative;
			top: -40rpx;
			left: 0rpx;

			&__top {
				font-weight: 400;
				font-size: 38rpx;
				color: #333333;
				text-align: center;
				font-style: normal;
				text-transform: none;
				margin-bottom: 30rpx;

				.left {
					width: 134rpx;
					height: 0rpx;
					border: 2rpx solid;
					border-image: linear-gradient(90deg, rgba(51, 51, 51, 1), rgba(255, 255, 255, 1)) 2 2;
				}

				.right {
					width: 134rpx;
					height: 0rpx;
					border: 2rpx solid;
					border-image: linear-gradient(90deg, rgba(51, 51, 51, 1), rgba(255, 255, 255, 1)) 2 2;
				}
			}

			&__center {
				display: flex;
				justify-content: space-between;
				align-items: flex-end;
				flex-flow: row wrap;
				margin-bottom: 30rpx;

				.max,
				.min {
					border-radius: 10rpx;
				}

				.max {
					width: 310rpx;
					height: 310rpx;
				}

				.min {
					width: 242rpx;
					height: 242rpx;
				}
			}

			&__btn {
				height: 80rpx;
				background: linear-gradient(90deg, #1990FF 0%, #26ABFF 100%);
				border-radius: 10rpx 10rpx 10rpx 10rpx;
				font-weight: 500;
				font-size: 36rpx;
				color: #FFFFFF;
				line-height: 80rpx;
				text-align: center;
				font-style: normal;
				text-transform: none;
				position: relative;
			}

			.contact-btn {
				position: absolute;
				top: 0;
				width: 100%;
				opacity: 0;
			}
		}
	}
</style>